#include "widget.h"
#include "ui_widget.h"
#include<QString>
#include<QDebug>
#include<QString>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->lineEdit_name->setPlaceholderText("请输入姓名");
    ui->lineEdit_name->setClearButtonEnabled(true);
    ui->lineEdit_number->setPlaceholderText("请输入学号");
    ui->lineEdit_number->setInputMask(QString("000000000"));
     ui->lineEdit_number->setClearButtonEnabled(true);
    ui->lineEdit_password->setPlaceholderText("请输入密码");
     ui->lineEdit_password->setClearButtonEnabled(true);
     ui->lineEdit_password->setEchoMode(QLineEdit::EchoMode::Password);
     ui->lineEdit_password->setInputMask(QString("000000"));

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug()<<"姓名："<<ui->lineEdit_name->text()<<" ";
    qDebug()<<"学号："<<ui->lineEdit_number->text()<<" ";
    qDebug()<<"密码："<<ui->lineEdit_password->text()<<" ";
}
